package cn.wolfcode.wolf.core.exception;

import cn.wolfcode.wolf.core.utils.Result;
import lombok.Getter;



@Getter
public class BusinessException extends RuntimeException{
    private Integer code= Result.ERROR_CODE;
    public BusinessException() {
        super(Result.ERROR_MESSAGE);
    }
    public BusinessException(String message) {
        super(message);
    }
    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
